package pers.lihuan.authweb.common.authz.annotation;

import java.lang.annotation.Retention;
import java.lang.annotation.Target;
import java.lang.annotation.ElementType;
import java.lang.annotation.RetentionPolicy;

/**
 * 权限判断注解
 */
@Target({ ElementType.TYPE, ElementType.METHOD })
@Retention(RetentionPolicy.RUNTIME)
public @interface RequiresPermissions {

	String[] value();

	/**
	 * 多个权限的逻辑操作，是and还是or，默认是and
	 */
	Logical logical() default Logical.AND;
}
